import { ADMIN_ID } from "@/constant/index";
import { removeToken } from "./token"
// md5
import md5 from "js-md5"
/**
 * 超级管理员
 */
export function isAdmin(value){
  return ADMIN_ID === value
}

/**
 * 密码
 */
export function passwordMD5(value){
  return md5(value)
}

/**
 * 退出
 */
export function exit() {
  removeToken()
  window.location.reload()
}